package cn.bdqn.dao;

import cn.bdqn.pojo.Bank;
import cn.bdqn.pojo.Banner;
import cn.bdqn.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/25 - 10:57
 */
@Mapper
@Repository
//部门
public interface DepartmentMapper {
    //查询部门
    List<Department> getList();
    //添加部门
    int add(Department department);
    //根据id查询部门
    List<Department> getListById(@Param("id") int id);
    //删除部门
    int delete(@Param("id") int id);
    //修改部门
    int update(Department department);
}
